/*import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'*/

import App from '../App'

const home = r => require.ensure([], () => r(require('../page/home/home')), 'home')
const login = r => require.ensure([], () => r(require('../page/login/login')), 'login')
const forget = r => require.ensure([], () => r(require('../page/forget/forget')), 'forget')

/*Vue.use(Router)*/

/*export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    }
  ]
})*/
export default[{
	path:'/',
	component:App,//顶层路由，对应index.htnk
	children:[ //二级路由，对应App.vue
	//地址为空时跳转到home页面
	{
		path:'',
		redirect:'/home'
		
	},
	{
		path:'/home',
		component:home
	},
	{
		path:'/login',
		component:login

	},
	{
		path:'/forget',
		component:forget

	}

	]
}]
